﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using ShineTech.Domain.Models.Kanbans;
using ShineTech.Domain.Models.Users;

namespace ShineTech.Infrastructure.Repositories.Kanbans
{
    public class KanbanEntityTypeConfiguration : IEntityTypeConfiguration<Kanban>
    {
        public void Configure(EntityTypeBuilder<Kanban> builder)
        {
            builder.ToTable("Kanbans");

            builder.HasKey(t => t.Id);
            builder.Property(t => t.Name).HasColumnName("Name").IsRequired();
           


        }
    }
}
